
Ext.define('ZO0.store.ItemsOnGoogle', {
    extend: 'Ext.data.Store',

    model: 'ZO0.model.ItemsOnGoogle',

    remoteSort: true,
    pageSize: 50,

    proxy: {
        type: 'ajax',
        api: {
            read: 'what?do=google&ex=getItems'
        },
        reader: {
            type: 'json',
            root: 'data',
            successProperty: 'success',
            totalProperty: 'total'
        },
        // sends single sort as multi parameter
        simpleSortMode: true
    },
    sorters: [{
        property: 'accwareID',
        direction: 'ASC'
    }]
});
